﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Configuration;
using System.Runtime.Remoting.Metadata.W3cXsd2001;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model.UI
{
    public class AdminUiCallBack
    {
        /// <summary>
        ///     状态码(ok = 0, error = 1, timeout = 401)
        /// </summary>
        public int code { get; set; } = 1;

        /// <summary>
        ///     可选。信息内容。
        /// </summary>
        public string msg { get; set; } = "空数据返回";

        public object data { get; set; }

        public object otherData { get; set; }

        public int count { get; set; }

        public int? rowId { get; set; }

        public string sign { get; set; } = "";

        public int status { get; set; } = 1;

        public string syncTime { get; set; }
    }

    public class LoginData
    {
        public int code { get; set; } = 1;
        public tokenList token { get; set; }
        public string loginUrl { get; set; }
        public corecmsstore store { get; set; }
        public List<corecmsstoremarket> market { get; set; }
        public sysuser sysUser { get; set; }
        public string msg { get; set; }
    }

    public class tokenList
    {
        public string success { get; set; }
        public string token { get; set; }
    }

    public class userModel
    {
        public int userid { get; set; }
        public Int64? roleCategoryId { get; set; }
        public String userName { get; set; }
        public String phone { get; set; }
    }
}